// const { log } = require("console");

// console.log('hello world');

const xhr = new XMLHttpRequest();
xhr.open('GET','/api/goods/list');

xhr.onload = function(){
    // const res =xhr.responseText;
    const res =JSON.parse(xhr.responseText);

    console.log(res);
}

xhr.send()